 
{loop $tags $i $t}
 <li {if $i<3}class="on"{/if}><em>{$i+1}</em><a href="{$t[linkurl]} {if $target} target="{$target}"{/if}">{$t[title]}</a> </li>
 
{/loop}
 